<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
     

<h:head>
        <title>Central de Estagio Administração</title>
        <link rel="StyleSheet" type="text/css" href="#{facesContext.externalContext.requestContextPath}/css/estilo.css" media="screen" />
        <link type="text/css" rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/css/tema/theme.css"/>
</h:head>
<body>
   <h:form>
          <div align="center">
   			<p:panelGrid id="gridCBO"  styleClass="semBorda" >
	   		    <f:facet name="header">
	   		       <p:row>
               			<p:column colspan="2" style="width:100% font-size:18px"> CADASTRAR CODIGO BRASILEIRO DE OCUPAÇÃO</p:column>
           	   	   </p:row> 
           	    </f:facet>	   		    
	             
           	   
           	   <p:row>
           	   		<p:column style="width:20% font-size:8px">Codigo CBO</p:column>
           			<p:column style="width:80% font-size:8px">Descrição</p:column>
           	   </p:row>
           	   <p:row>
           	   		<p:column>
           	   		    <p:inputText id="cdCBO" 
           	   		    value="#{MBCbo.beanCBO.codCBO}" size="20" 
           	   		    required="true"
					    requiredMessage="Campo obrigatório!" />
					    <p:message for="cdCBO" display="text"/>
           	   		</p:column>
           			
           			<p:column>
           			<p:inputText id="dcCBO" 
           			    value="#{MBCbo.beanCBO.descCBO}" size="60" 
           			    required="true"
					    requiredMessage="Campo obrigatório!" />
					    <p:message for="dcCBO" display="text"/>
           			</p:column>
           	   </p:row>
           	   <p:row></p:row>
           	   <p:row>
           			<p:column colspan="2" style=" width:100% font-size:10px"> 
           			  <div align="center">
           			      <p:commandButton id="infoButton" value="Salvar" icon="ui-icon-disk"
           			      actionListener="#{MBCbo.save}" update="gridCBO" />
           			      <p:button value="Cancelar" icon="ui-icon-cancel"  />
           			  </div> 
           			</p:column>
           	   </p:row>
      		</p:panelGrid>
      	</div>
        </h:form>	
</body>
</html>